package demo4;

public class AfterMain {
    public static void main(String[] args){
        AfterStack stack1=new AfterStack();
        String[] s={"1","2", "3","*","+","4","5","*","6","+","7","*","+"};
       int num= stack1.evalRPN(s);
       System.out.println("逆波兰表达式的值为："+num);
    }
}
